package com.youxin.busfoundation.enums;

/**
 * 委托类型
 * @author yingde.cao
 *
 */
public enum DelegateType {
	Resources((short)1),
	Company((short)2),
	Person((short)3),
	;
	public short getValue() {
		return value;
	}
	private short value;
	private DelegateType(short value) {
		this.value = value;
	}
	
	public static DelegateType valueOf(short val)
	{			
		for(DelegateType m : DelegateType.values()) 
		{
			if(val==m.getValue())
				return m;
	    }
		return null;
	}
}
